<form action="/backend/project/records" method="get" class="filter">
    <select name="type">
        <option value="0">选择类型</option>
		<?php foreach ($types as $type): ?>
	        <option value="<?php echo $type->id; ?>">
				<?php echo $type->value; ?>
	        </option>
		<?php endforeach; ?>
    </select>
    <select name="year">
        <option value="0">选择年份</option>
		<?php for ($i = 2002; $i <= intval(date('Y', time())); $i++): ?>
	        <option value="<?php echo $i; ?>">
				<?php echo $i; ?>
	        </option>
		<?php endfor; ?>
    </select>
    <select name="area">
        <option value="0">选择区域</option>
		<?php foreach ($areas as $area): ?>
	        <option value="<?php echo $area->id; ?>">
				<?php echo $area->value; ?>
	        </option>
		<?php endforeach; ?>
    </select>
    <input type="text" name="title"/>
    <input type="submit" name="submit" value="搜索"/>
</form>

<ul class="button">
    <li><a href="/backend/project/add" class="add">新增</a></li>
</ul>

<table class="records">
    <thead>
        <tr>
            <th>选择</th>
			<th>顺序</th>
            <th>类型</th>
            <th>年份</th>
            <th>区域</th>
            <th>标题</th>
            <th>操作</th>
        </tr>
    </thead>
    <tfoot>
        <tr><td colspan="7"></td></tr>
    </tfoot>
    <tbody><tr><td colspan="7"></td></tr></tbody>
</table>

<script id="list-template" type="text/x-jquery-tmpl">
    <tr>
        <td><input type="checkbox" name="id[]" value="${id}"/></td>
		<td>${order}</td>
        <td>${type_value}</td>
        <td>${year}</td>
        <td>${area_value}</td>
        <td><a href="/backend/project/show/${id}">${title}</a></td>
        <td>
			<a href="javascritp:void(0);" class="order">排序</a>
            <a href="/backend/project/edit/${id}" class="edit">修改</a>
            <a href="javascritp:void(0);" class="delete">删除</a>
        </td>
    </tr>
</script>

<script id="order-form" type="text/x-jquery-tmpl">
	<form action="/backend/project/order" method="post">
		<input type="hidden" name="id" value="${id}"/>
		<input type="text" name="order" />
		<input type="submit" value="确定"/>
	</form>
</script>